//
//  HJYEssenceVC.m
//  BuDeJie
//
//  Created by 胡大力 on 2016/12/5.
//  Copyright © 2016年 nebula. All rights reserved.
//

#import "HJYEssenceVC.h"

@interface HJYEssenceVC ()

@end

@implementation HJYEssenceVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setUpNav];
}


- (void)setUpNav {
    
    //titleView
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @"MainTitle"]];
    
    
    //左侧
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem barButtonitemWithImageName:@"nav_item_game_icon" HightlightName:@"nav_item_game_click_icon" target:self action:@selector(gameBtnClick)];
    
    
    //右侧
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem barButtonitemWithImageName:@"navigationButtonRandom" HightlightName:@"navigationButtonRandomClick" target:self action:@selector(randomBtnClick)];
    
}


- (void)gameBtnClick {
    
    NSLog(@"gameBtnClick");
}

- (void)randomBtnClick {
    
    NSLog(@"randomBtnClick");
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
